import request from '@/utils/request'

// 查询树结构
export function getquery(data) {
  return request({
    url: '/menu/query',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: '/menu/add',
    method: 'post',
    data
  })
}

export function deletes(data) {
  return request({
    url: '/menu/delete',
    method: 'post',
    data
  })
}

export function getid(data) {
  return request({
    url: '/menu/getid',
    method: 'post',
    data
  })
}

export function edits(data) {
  return request({
    url: '/menu/edit',
    method: 'post',
    data
  })
}
